<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
        <li><a href="{:url('leave/index')}">明星留言</a></li>
        <li class="active"><a href="{:url('leave/shout')}">呼唤留言</a></li>
	</ul>
	<form class="well form-inline margin-top-20" method="post" action="{:url('leave/shout')}">
		留言内容:
		<input type="text" class="form-control" name="c_content" value="{$c_content}" placeholder="请输入留言内容">
		<input type="submit" class="btn btn-primary" value="搜索" />
		<a class="btn btn-danger" href="{:url('leave/shout')}">清空</a>
	</form>
	<table class="table table-hover table-bordered">
		<thead>
		<tr>
			<th width="50">ID</th>
			<th>明星</th>
			<th>发帖人</th>
			<th>评论内容</th>
			<th>评论数</th>
			<th>发布时间</th>
			<th width="50">操作</th>
		</tr>
		</thead>
		<tbody>
		<foreach name="comment" item="vo">
			<tr>
				<td>{$vo.id}</td>
				<td>{$vo.s_name}</td>
				<td>{$vo.u_nickname}</td>
				<td>{$vo.c_content}</td>
				<td>{$vo.c_comment}</td>
				<td>{$vo.c_createtime}</td>
				<td>
					<if condition="$vo['c_status'] lt 30">
						<a href="{:url('leave/disabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要屏蔽此留言吗？">屏蔽</a>
						<else />
						<a href="{:url('leave/disabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要显示此留言吗？"><b style="color: red">显示</b></a>
					</if>
				</td>
			</tr>
		</foreach>
		</tbody>
	</table>
	<div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>